package cn.coderwe;

import javafx.application.Application;
import javafx.application.Platform;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

/**
 * @author : coderwe
 */
public class EpubDesktopApplication extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(EpubDesktopApplication.class.getResource("/fxml/epub-desktop-view.fxml"));
        Scene scene = new Scene(fxmlLoader.load());
        stage.setTitle("Epub生成工具");
        stage.setScene(scene);
        stage.setAlwaysOnTop(true);
        stage.show();
        Platform.runLater(() -> stage.setAlwaysOnTop(false));
    }
}